﻿/* 
 *  <copyright file="RegisterComponentsWithFactory.cs" company="Wesley Jowitt">
 *  
 *  SobrietyEngine: Copyright (c) 2011 Wesley Jowitt
 *  
 *  This software is distributed under a software license.
 *   * As of the creation time of this file, the license in use is the Microsoft Permissive License (Ms-PL) 
 *    * The license can be viewed at:
 *     * License.Txt in the root folder of this project
 *      * http://sobrietyengine.codeplex.com/license
 *       * http://www.microsoft.com/opensource/licenses.mspx
 *       
 *  </copyright>
 *   */

using SobrietyEngine.Components;

namespace SEGameExample.Components
{
    /// <summary>
    /// This class is used to register components with the factory
    /// it is a seperate 
    /// class so that we can create all components
    /// in outside tools (such as the actor actorDefinition editor)
    /// and via scripting
    /// </summary>
    static public class RegisterComponentsWithFactory
    {
        public static void Register()
        {
            //register components with factory
            ComponentFactory.Register(new ComponentFactoryBuilder<Spawners.StaticGeomFromMeshCmp>());
        }
    }
}
